/**
 * @author      Xu Meng <meng.xu01@sap.com>
 * @version     0.1                 
 * @since       2012-06-18
 */

package sap.feed.java.client;

public interface SAPFeedInterface {

	/**
	 * Being called upon successful authentication to SAPFeed service.
	 *
	 */
	public void onSAPFeedLogin();
	
	/**
	 * Being called upon successful logout from SAPFeed service.
	 *
	 */	
	public void onSAPFeedLogout();

	/**
	 * Being called upon successful publish to indicated datasets on SAPFeed service.
	 *
	 */	
	public void onSAPFeedPublish();

	/**
	 * Being called upon receipt of information from datasets on SAPFeed service.
	 *
	 */	
	public void onSAPFeedReceive(int publisherID, int datasetID, Object data);

	/**
	 * Being called upon successful indication of datasets to listen to on SAPFeed service.
	 *
	 */	
	public void onSAPFeedListen();
	
	/**
	 * Being called when error happens in any of the operations related to SAPFeed.
	 *
	 */		
	public void onSAPFeedError(String errorCode, String message);
			

}
